package com.home.customtest.data

import com.custom.action.core.annotations.*
import com.custom.action.model.ActiveBaseModel
import com.custom.jdbc.handler.BooleanTypeHandler
import com.home.customtest.entity.Province

/**
 * @author XiaoBai
 * @since 2024/4/17 10:37
 *
 */
@DbTable("student", order = 7)
class StudentOnQueryAfter : ActiveBaseModel<StudentOnInsertOrUpdate, Int>() {

    var sex: Boolean? = null

    var phone: String? = null

    @DbKey
    var id: Int? = null

    var name: String? = null

    @DbNotField
    var province: Province? = null

    @DbField("nick_code")
    var nickName: String? = null

    var password: String? = null

    @DbLogic(value = "false", delValue = "true", typeHandler = BooleanTypeHandler::class)
    var stateFlag: Boolean? = null

    override fun queryAfter() {
        // 查询后的后置操作
        this.phone = "手机号：" + this.phone
    }

}